﻿using SG;

public class GameCenter
{
    static GameCenter m_Instance;
    public static GameCenter Instance()
    {
        if (m_Instance == null)
        {
            m_Instance = new GameCenter();

        }
        return m_Instance;
    }

    bool m_bInited = false;

    public bool IsInited() { return m_bInited; }

    public void Init()
    {
        if (m_bInited)
            return;
        m_bInited = true;

        // 加载游戏主循环组件
        var gl = InstanceHelper.GetSingletonRoot().GetOrAddComponent<GameLoop>();
        gl.DoInit();


    }
}
